package com.booking.dao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.booking.dao.dto.ScoreDTO;
import com.booking.dao.entity.ServiceCommentDetail;
import com.booking.dao.mapper.ServiceCommentDetailMapper;
import com.booking.dao.service.ServiceCommentDetailService;
import org.springframework.stereotype.Service;

/**
 * @author Qikai.Lin
 * @date 2023/4/23
 */
@Service
public class ServiceCommentDetailServiceImpl extends ServiceImpl<ServiceCommentDetailMapper, ServiceCommentDetail>
        implements ServiceCommentDetailService {
    @Override
    public ScoreDTO getScoreDTOByHomestayId(Long homestayId) {
        return this.baseMapper.getScoreByHomestayId(homestayId);
    }
}
